
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大连东丘贸易有限公司</title>
<!-- 样式表 -->
<link rel="stylesheet" type="text/css" href="images/front.css" />

<!-- 脚本表 -->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="js/dq.js"> </script>

</head>

<?php include "include/init.php" ?>

<body>
<div class="body_top">
	<?php include "inc/page_top.php"; ?>
</div>

<div class="body_main">

	<?php include "inc/body_nav.php"; ?>
    <?php include "inc/body_banner.php"; ?>
 
    
	<div class="body_content">
    	<!--  左侧栏目 -->
     	<div style="float:left;width:250px">
            <div class="left_nav_bar" id="left_nav_bar">
                <div class="nav_title">
                    <a href="<?php echo $link_brief ?>">产品信息</a>
                    <div class="hr"></div>
                </div>
                <div class="nav_panel">
                	<ul>
                        <li class="active">精品茶叶</li>
                        <li>精品红酒</li>
                    </ul>
                </div>
            </div>
            <?php include "inc/body_contact.php"; ?>
        </div>
        
        <!-- 右侧栏目 -->
        <div style="float:right;width:650px;">
        	<div class="right_dis_panel" id="right_dis_panel">
                <div>
                	<div class="dis_title">
                        产品信息 > 精品茶叶</a>
                        <div class="hr"></div>
                    </div>
                    <div>
                       <table>
                       		<tr></tr>
							  <?php
							  	$counter = 0;
								$comb_code = ""; 
                                foreach($list_chaye as $item)
                                {
									if($counter % 4 == 0)
									{
										if($counter > 0)
										{
											$comb_code .= "</tr>";
											echo $comb_code;
											$comb_code = "";
										}
										$comb_code = "<tr>";
									}
									$comb_code .= "<td>";
                                    $comb_code .= "<table>";    
                                    $comb_code .= "<tr>";   
                                    $comb_code .= "<td>";  
                                    $comb_code .= "<a href='#' onclick='show_chaye_info(111)'/>";
                                    $comb_code .= "<div align='center'>";    
                                    $comb_code .= "<img src='" . $item->image . "'/>";
                                    $comb_code .= "</div>";
                                    $comb_code .= "<div align='center' style='margin:5px'>";     
                                    $comb_code .= "" . $item->name;  
                                    $comb_code .= "</div>";   
                                    $comb_code .= "</a>"; 
                                    $comb_code .= "</td>"; 
                                    $comb_code .= "</tr>";  
                                    $comb_code .= "</table>";  
									$comb_code .= "</td>";
									$counter ++;
                                }
								if($comb_code != "")
								{
									$comb_code .= "</tr>";
									echo $comb_code;
								}
								
								// 页码
								$totalcount = count($list_hongjiu);
								$page_no = 1;
								$page_count = $totalcount%16 ==0 ? $totalcount/16 : floor($totalcount/16) + 1;
								$pageing = "";
								$pageing .= "<tr>";
								$pageing .= "<td height='50' colspan='5' align='center' valign='bottom'>";
								$pageing .= "共 " . $totalcount . "条记录";
								$pageing .= "   页次: " . $page_no . "/" . $page_count;
								$pageing .= "   每页16条记录";
								$pageing .= "   录";
								// 页码计算、显示5个 前-2 后+2
								$page_noarr = array();
								if($page_no -2 < 0 || $page_no -1 < 0)
								{
									$page_noarr[0] = 1;
									$page_noarr[1] = 2;
									$page_noarr[2] = 3;
									$page_noarr[3] = 4;
									$page_noarr[4] = 5;
								}
								else 
								{
									$page_noarr[0] = $page_no - 2;
									$page_noarr[1] = $page_no - 1;
									$page_noarr[2] = $page_no;
									$page_noarr[3] = $page_no + 1;
									$page_noarr[4] = $page_no + 2;
								}
								for($x=0; $x<5; $x++)
								{
									if($page_noarr[$x] <= $page_count)
									{
										$pageing .= "<a href='#' style='margin-left:5px;'>" . $page_noarr[$x] . "</a>";
									}
								}
								
								
								$pageing .= "</td>";
								$pageing .= "</tr>";
								echo $pageing;
                              ?>
                          </table>
                    </div>
                </div>
                <div style="display:none;">
                	<div class="dis_title">
                        产品信息 > 精品红酒</a>
                        <div class="hr"></div>
                    </div>
                    <div>
                       <table>
                       		<tr></tr>
							  <?php
							  	$counter = 0;
								$comb_code = ""; 
                                foreach($list_hongjiu as $item)
                                {
									if($counter % 4 == 0)
									{
										if($counter > 0)
										{
											$comb_code .= "</tr>";
											echo $comb_code;
											$comb_code = "";
										}
										$comb_code = "<tr>";
									}
									$comb_code .= "<td>";
                                    $comb_code .= "<table>";    
                                    $comb_code .= "<tr>";   
                                    $comb_code .= "<td>";  
                                     $comb_code .= "<a href='#' onclick='show_hongjiu_info(111)'/>";
                                    $comb_code .= "<div align='center'>";    
                                    $comb_code .= "<img src='" . $item->image . "'/>";
                                    $comb_code .= "</div>";
                                    $comb_code .= "<div align='center' style='margin:5px'>";     
                                    $comb_code .= "" . $item->name;  
                                    $comb_code .= "</div>";   
                                    $comb_code .= "</a>"; 
                                    $comb_code .= "</td>"; 
                                    $comb_code .= "</tr>";  
                                    $comb_code .= "</table>";  
									$comb_code .= "</td>";
									$counter ++;
                                }
								if($comb_code != "")
								{
									$comb_code .= "</tr>";
									echo $comb_code;
								}
								
								// 页码
								$totalcount = count($list_hongjiu);
								$page_no = 1;
								$page_count = $totalcount%16 ==0 ? $totalcount/16 : floor($totalcount/16) + 1;
								$pageing = "";
								$pageing .= "<tr>";
								$pageing .= "<td height='50' colspan='5' align='center' valign='bottom'>";
								$pageing .= "共 " . $totalcount . "条记录";
								$pageing .= "   页次: " . $page_no . "/" . $page_count;
								$pageing .= "   每页16条记录";
								$pageing .= "   录";
								// 页码计算、显示5个 前-2 后+2
								$page_noarr = array();
								if($page_no -2 < 0 || $page_no -1 < 0)
								{
									$page_noarr[0] = 1;
									$page_noarr[1] = 2;
									$page_noarr[2] = 3;
									$page_noarr[3] = 4;
									$page_noarr[4] = 5;
								}
								else 
								{
									$page_noarr[0] = $page_no - 2;
									$page_noarr[1] = $page_no - 1;
									$page_noarr[2] = $page_no;
									$page_noarr[3] = $page_no + 1;
									$page_noarr[4] = $page_no + 2;
								}
								for($x=0; $x<5; $x++)
								{
									if($page_noarr[$x] <= $page_count)
									{
										$pageing .= "<a href='#' style='margin-left:5px;'>" . $page_noarr[$x] . "</a>";
									}
								}
								
								
								$pageing .= "</td>";
								$pageing .= "</tr>";
								echo $pageing;
                              ?>
                          </table>
                    </div>
                </div>
                
                <div id="product_info" style="display:none">

                </div>
            </div>
        </div>
    </div>

</div>

<div class="body_footer">
	<?php include "inc/footer.php"; ?>
</div>
</body>

</html>
